package cn.tangsihai.feigin.clients;

import cn.tangsihai.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * 集成feign
 */
@FeignClient(value = "SERVICE-USER", fallbackFactory = UserFeignClientFallbackFactory.class)
public interface UserFeginClient {
    @GetMapping("/getById/{id}")
    User userGet(@PathVariable("id") Long id);
}
